package demo;

import java.io.PrintWriter;
import java.io.Serializable;

public class DemoLogger implements Serializable {

    public PrintWriter out;

    public void open() throws Exception{
        out = new PrintWriter("Demo.txt");
        System.out.printf("打开文件Demo.txt");


    }

    public void close(){
        out.close();
        System.out.printf("关闭文件Demo.txt");
    }
}
